helpers
Class DeviceUserResultsHelper

java.lang.Object
  extended by helpers.DeviceUserResultsHelper

public class DeviceUserResultsHelper
extends java.lang.Object

Helper class to a extract data from the DeviceUserResults object


Field Summary
(package private)  Response response
           
 
Constructor Summary
DeviceUserResultsHelper(Response response)
          Initialize with the response to be parsed
 
Method Summary
 boolean deviceExists()
           
 java.lang.String getError()
           
 java.lang.String getUser()
           
 boolean hasFailure()
           
 boolean hasUser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

response

Response response
Constructor Detail

DeviceUserResultsHelper

public DeviceUserResultsHelper(Response response)
Initialize with the response to be parsed

Parameters:
response -
Method Detail

deviceExists

public boolean deviceExists()
Returns:
returns true if the queried device name exists, false if it does not exist

hasFailure

public boolean hasFailure()
Returns:
returns true if the response contains a failure object

hasUser

public boolean hasUser()
Returns:
returns true if the response contains a username indicating that the device has a a logged in user.

getUser

public java.lang.String getUser()
Returns:
returns the user ID of the user logged into the queried device

getError

public java.lang.String getError()
Returns:
returns error information if there is a failure